package com.yzt.zhuju.network.entity.dynamic;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 作者：bobwang
 * 创建时间：2023-10-12 00:27:39
 * 描述：
 */
public class RedPkgDetailBean implements Parcelable {

    private String avatar;
    private String dsc;
    private boolean canOpen;
    private String redPacketId;
    private String redPackageId;
    private String title;
    private String candyCoin;
    private String openInfo;
    private boolean random;
    private String sendUserName;

    private List<RedPkgUserBean> userList;

    public RedPkgDetailBean() {
    }


    protected RedPkgDetailBean(Parcel in) {
        avatar = in.readString();
        dsc = in.readString();
        canOpen = in.readByte() != 0;
        redPacketId = in.readString();
        title = in.readString();
        candyCoin = in.readString();
        openInfo = in.readString();
        random = in.readByte() != 0;
        sendUserName = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(avatar);
        dest.writeString(dsc);
        dest.writeByte((byte) (canOpen ? 1 : 0));
        dest.writeString(redPacketId);
        dest.writeString(title);
        dest.writeString(candyCoin);
        dest.writeString(openInfo);
        dest.writeByte((byte) (random ? 1 : 0));
        dest.writeString(sendUserName);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<RedPkgDetailBean> CREATOR = new Creator<RedPkgDetailBean>() {
        @Override
        public RedPkgDetailBean createFromParcel(Parcel in) {
            return new RedPkgDetailBean(in);
        }

        @Override
        public RedPkgDetailBean[] newArray(int size) {
            return new RedPkgDetailBean[size];
        }
    };

    public String getSendUserName() {
        return sendUserName;
    }

    public void setSendUserName(String sendUserName) {
        this.sendUserName = sendUserName;
    }

    public String getCandyCoin() {
        return candyCoin;
    }

    public void setCandyCoin(String candyCoin) {
        this.candyCoin = candyCoin;
    }

    public String getOpenInfo() {
        return openInfo;
    }

    public void setOpenInfo(String openInfo) {
        this.openInfo = openInfo;
    }

    public List<RedPkgUserBean> getUserList() {
        return userList;
    }

    public void setUserList(List<RedPkgUserBean> userList) {
        this.userList = userList;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDsc() {
        return dsc;
    }

    public void setDsc(String dsc) {
        this.dsc = dsc;
    }

    public boolean isCanOpen() {
        return canOpen;
    }

    public void setCanOpen(boolean canOpen) {
        this.canOpen = canOpen;
    }

    public String getRedPacketId() {
        return redPacketId;
    }

    public void setRedPacketId(String redPacketId) {
        this.redPacketId = redPacketId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRedPackageId() {
        return redPackageId;
    }

    public void setRedPackageId(String redPackageId) {
        this.redPackageId = redPackageId;
    }
}
